package upb.webserver.test.param;

import com.upb.webserver.common.pojo.fisco.contract.ReqDeployContractVO;
import com.upb.webserver.common.pojo.fisco.contract.ReqSaveContractVO;
import org.assertj.core.util.Arrays;

public class FiscoContractParamUtils {

    /**
     * @return
     */
    public static ReqSaveContractVO initReqSaveContractVO() {
        ReqSaveContractVO param = new ReqSaveContractVO();
        param.setApplicationId(1);
        param.setContractPath("test");
        param.setContractName("hello");
        param.setContractSource("111aadfavawe");
        param.setBytecodeBin("bin");
        param.setContractBin("aaaa");
        param.setContractAbi("bbbbbbb");

        //如果是更新，传contractId
        param.setContractId(1);


        return param;
    }


    /**
     * @return
     */
    public static ReqDeployContractVO initReqDeployContractVO() {
        ReqDeployContractVO param = new ReqDeployContractVO();
        param.setContractId(1);

        //如果有构造函数
        param.setConstructorParams(Arrays.asList(1));
        return param;
    }
}
